package com.mgy.shardingjdbc.test.dao.mapper.notepad;


import com.mgy.db.TableRouter;
import com.mgy.db.sharding.annotation.MybatisMapper;
import com.mgy.shardingjdbc.test.domain.notepad.Tag;
import com.mgy.shardingjdbc.test.query.notepad.NotepadQuery;
import org.apache.ibatis.annotations.Param;

/**
 * 测试
 *
 * @author maguoyong
 * @since 2018/06/22
 */
@MybatisMapper
public interface ITagDao {

    Integer add(Tag tag);

    Integer add(@Param("tag") Tag tag, TableRouter tableRouter);

    Integer updateByKey(Tag tag);

    Tag getOne(NotepadQuery notepadQuery);

    Tag getByKey(Integer id);

    Tag getByKey(Integer id, String logicTable, Integer dbNo, Integer tableNo);

}
